/**
 * 
 */
package fr.isima.isipaint.tools;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import fr.isima.isipaint.gui.IsiPaint;
import fr.isima.isipaint.model.Oval;
import fr.isima.isipaint.utils.IconsUtils;

/**
 * @author daniel
 *
 */
public class OvalAction extends AbstractAction {

	/**
	 * Generated Serial
	 */
	private static final long serialVersionUID = 1L;

	public OvalAction() {
		super("Oval", IconsUtils.loadIcon(String.format(IsiPaint.IMAGE_LOCATION, "oval"), "Draw an Oval"));
		putValue(SHORT_DESCRIPTION, "Draw an Oval");
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		putValue("GRAPHIC", new Oval());

	}
}
